package com.xupla.teentweet;

import android.app.Activity;
import android.content.Intent;
import android.media.Ringtone;
import android.media.RingtoneManager;
import android.net.Uri;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.EditText;

public class Teen_Tweet extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_teen__tweet);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_teen__tweet, menu);
		return true;
	}
	
	public void toggleTweet( View view )
	{
		Intent intent = new Intent(this, DisplayMessageActivity.class);
    	EditText edtTxt = (EditText) findViewById( R.id.edit_message);
    	String message = edtTxt.getText().toString();
    	
    	intent.putExtra(EXTRA_MESSAGE, message);
    	startActivity(intent);    	       */
    }    
    
    private void beep() throws Exception
    {
	   try {
	 	    Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);
	        Ringtone r = RingtoneManager.getRingtone(getApplicationContext(), notification);
	        r.play();    
        
	   } catch (Exception e) {
		   /*XuplaErrorHandler eh = new XuplaErrorHandler( true, this );
    		eh.handleError( e.getMessage(), this );*/
	   }
	}
}
